<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>商品规格列表</title>
<%@ include file="/page/include.jsp"%>
<link rel="stylesheet" type="text/css" href="<%=basePath%>/statics/plugins/jqwidgets-ver3.9.1/jqwidgets/styles/jqx.base.css" />
<link rel="stylesheet" type="text/css" href="<%=basePath%>/statics/plugins/jqwidgets-ver3.9.1/jqwidgets/styles/jqx.office.css" />
<link href="<%=basePath%>/statics/css/webform.css?v=20180104" rel="stylesheet" />
<script src="<%=basePath%>/statics/js/webform.js" type="text/javascript"></script>
<script type="text/javascript">
var SystemImgPath = '<%=PublicConfig.IMG_ROOT_URL%>';
</script>
</head>
<body class="nav-md">
	<div class="container body">
		<div class="main_container">
			<div class="framebody" role="main" style="background-color: #fff; padding-bottom: 20px;">
				<ul id="myTab" class="nav nav-tabs">
					<li ${tabIndex=='1'?'class="active"':''}>
						<a href="#companyInfoContent" data-toggle="tab">基本信息</a>
					</li>
					<%-- <li ${tabIndex=='2'?'class="active"':''}>
						<a href="#customerInfoContent" data-toggle="tab">公众号配置</a>
					</li> --%>
					<li ${tabIndex=='3'?'class="active"':''}>
						<a href="#sysPayConfigContent" data-toggle="tab">支付方式</a>
					</li>
					<%-- <li ${tabIndex=='4'?'class="active"':''}>
						<a href="#deliverModeContent" data-toggle="tab">短信模板</a>
					</li> --%>
				</ul>
				<div id="myTabContent" class="tab-content">
					<!-- 基本信息 -->
					<div id="companyInfoContent" class="tab-pane fade ${tabIndex=='1'?'in active':''}">
						<div class="x_panel">
							<div class="x_content">
								<form class="form-horizontal form-label-left" id="companyInfoForm" action="<%=basePath%>/companyInfo/saveOrUpdateCompanyInfo" method="post">
									<input id="id" name="id" value="${companyInfo.id}" class="form-control" type="hidden"/>
										<div class="item form-group">
											<label class="control-label col-md-1 col-sm-1 col-xs-12" for="companyName">公司全称: </label>
											<div class="col-md-4 col-sm-4 col-xs-12">
												<input id="companyName" name="companyName" value="${companyInfo.companyName}" class="form-control" type="text"/>
											</div>
											<label class="control-label col-md-1 col-sm-1 col-xs-12" for="industryCode">行业: </label>
											<div class="col-md-4 col-sm-4 col-xs-12">
												<select id="t_industryCode" name="t_industryCode" class="selectpicker" title="请选择行业">
												</select>
												<input id="industryCode" name="industryCode" value="${companyInfo.industryCode}" type="hidden"/>
											</div>
										</div>

										<div class="item form-group">
											<label class="control-label col-md-1 col-sm-1 col-xs-12" for="managerName">负责人姓名: </label>
											<div class="col-md-4 col-sm-4 col-xs-12">
												<input id="managerName" name="managerName" value="${companyInfo.managerName }" class="form-control" type="text"/>
											</div>
											<label class="control-label col-md-1 col-sm-1 col-xs-12" for="managerMobile">负责人电话: </label>
											<div class="col-md-3 col-sm-4 col-xs-12">
												<input id="managerMobile" name="managerMobile" value="${companyInfo.managerMobile }" class="form-control" type="text"/>
											</div>
										</div>

										<div class="item form-group">
											<label class="control-label col-md-1 col-sm-1 col-xs-12" for="phone">固定电话: </label>
											<div class="col-md-4 col-sm-4 col-xs-12">
												<input id="phone" name="phone" value="${companyInfo.phone }" class="form-control" type="text"/>
											</div>
											<label class="control-label col-md-1 col-sm-1 col-xs-12" for="faxNo">传真: </label>
											<div class="col-md-3 col-sm-4 col-xs-12">
												<input id="faxNo" name="faxNo" value="${companyInfo.faxNo }" class="form-control" type="text"/>
											</div>
										</div>

										<div class="item form-group">
											<label class="control-label col-md-1 col-sm-1 col-xs-12">所在地区:
											</label>
											<div class="col-md-8 col-sm-8 col-xs-12">
												<select id="province" name="province" init-value="${companyInfo.province }" value="${companyInfo.province }" class="selectpicker" title="省" data-live-search="true">
												</select>
												<select id="city" name="city" init-value="${companyInfo.city }" value="${companyInfo.city }" class="selectpicker" title="市" data-live-search="true">
												</select>
												<select id="area" name="area" init-value="${companyInfo.area }" value="${companyInfo.area }" class="selectpicker" title="区" data-live-search="true">
												</select>
											</div>
										</div>

										<div class="item form-group">
											<label class="control-label col-md-1 col-sm-1 col-xs-12" for="address">详细地址: </label>
											<div class="col-md-8 col-sm-8 col-xs-12">
												<input id="address" name="address" value="${companyInfo.address }" class="form-control" type="text"/>
											</div>
										</div>
										<div class="x_title">
											<div class="clearfix"></div>
										</div>
										<div class="item form-group">
											<label class="control-label col-md-1 col-sm-1 col-xs-12" for="warehouseKeeper">仓库联系人: </label>
											<div class="col-md-4 col-sm-4 col-xs-12">
												<input id="warehouseKeeper" name="warehouseKeeper" value="${companyInfo.warehouseKeeper }" class="form-control" type="text"/>
											</div>
											<label class="control-label col-md-1 col-sm-1 col-xs-12" for="wareHouseTel">仓库电话: </label>
											<div class="col-md-3 col-sm-4 col-xs-12">
												<input id="warehouseTel" name="warehouseTel" value="${companyInfo.warehouseTel }" class="form-control" type="text"/>
											</div>
										</div>

										<div class="item form-group">
											<label class="control-label col-md-1 col-sm-1 col-xs-12" for="warehouseAddress">仓库地址: </label>
											<div class="col-md-8 col-sm-8 col-xs-12">
												<input id="warehouseAddress" name="warehouseAddress" value="${companyInfo.warehouseAddress }" class="form-control" type="text"/>
											</div>
										</div>
										<div class="x_title">
											<div class="clearfix"></div>
										</div>
										<div class="item form-group">
											<label class="control-label col-md-1 col-sm-1 col-xs-12" for="businessScope">经营范围: </label>
											<div class="col-md-8 col-sm-8 col-xs-12">
												<textarea id="businessScope" name="businessScope" class="form-control">${companyInfo.businessScope }</textarea>
											</div>
										</div>

										<div class="item form-group">
											<label class="control-label col-md-1 col-sm-1 col-xs-12" for="businessLicenseImagePath">营业执照: </label>
											<div class="col-md-6 col-sm-6 col-xs-12">
												<div class="uploadpic_part">
													<ul id="image_container">
														<input type="hidden" id="businessLicenseImagePath" name="businessLicenseImagePath" value="${companyInfo.businessLicenseImagePath }" />
														<c:if test="${ not empty companyInfo.businessLicenseImagePath }">
															<li class="removeLi">
																<div class="pic1">
																	<a rel='licenseImg' href="<%=PublicConfig.IMG_ROOT_URL%>${companyInfo.businessLicenseImagePath }">
																		<img src="<%=PublicConfig.IMG_ROOT_URL%>${companyInfo.businessLicenseImagePath }?x-oss-process=image/resize,h_60/format,png" />
																	</a>
																	<a id="btn_close" href="javascript:void(0)" onclick="delImage()" class="icon_close"></a>
																</div>
															</li>
														</c:if>
														<c:if test="${ empty companyInfo.businessLicenseImagePath}">
															<li>
																<div class="pic1">
																	<img src="${rootPath}/statics/images/upload_pic1.png" />
																	<input id="business_license_image" type="file" name="business_license_image" onchange="ajaxFileUpload(this)" />
																</div>
															</li>
														</c:if>
													</ul>
												</div>
												<span class="pictips">尺寸:800*800,大小不超过1M</span>
											</div>
										</div>

										<div class="item form-group">
											<label class="control-label col-md-1 col-sm-1 col-xs-12" for="intro">备 注: </label>
											<div class="col-md-8 col-sm-8 col-xs-12">
												<textarea id="intro" name="intro" class="form-control">${companyInfo.intro }</textarea>
											</div>
										</div>

										<div class="ln_solid"></div>
										<div class="form-btn-content">
											<a id="btn_save" class="btn btn-primary"><i class="fa fa-check fa-fw"></i>保存</a>
										</div>
								</form>
							</div>
						</div>
					</div>
					<!-- 基本信息结束 -->

					<!-- 支付方式 -->
					<div id="sysPayConfigContent" class="tab-pane fade ${tabIndex=='3'?'in active':''}">
						<div class="row">
							<div class="col-md-12 col-sm-12 col-xs-12">
								<div class="x_panel">
									<div class="x_title">
										<h2>
											<i class="fa fa-pencil fa-fw"></i>查询条件 <small></small>
										</h2> 
										<div class="clearfix"></div>
									</div>
									<div class="x_content">
										<form id="position-form" class="form-horizontal form-label-left">
											<div class="form-group">
												<label class="control-label col-md-1" for="roleName">支付类型:</label>
												<div class="col-md-2">
													<select class="selectpicker form-control col-md-12" id="payType">
														<option value="">全部</option>
													</select>
												</div>
											</div>
											<div class="form-group">
												<div class="pull-right">
													<a class="btn btn-danger" id="btnSysPayConfigClear"><i class="fa fa-trash-o fa-fw"></i>清空</a> 
													<a class="btn btn-primary search" id="btnSysPayConfigQuery"><i class="fa fa-search-plus fa-fw"></i>查询</a>
												</div>
											</div>
										</form>
									</div>
								</div>
							</div>
						</div>

						<div class="row">
							<div class="col-md-12 col-sm-12 col-xs-12">
								<div class="x_panel">
									<div class="x_title">
										<h2>
											<i class="fa fa-reorder fa-fw"></i>支付方式列表 <small></small>
										</h2>
										<div class="clearfix">
											<div class="pull-left"></div>
										</div>
									</div>
									<div class="x_content">
										<div class="row" style="padding-bottom: 10px;">
											<a class="btn btn-success btn-sm" id="btnSysPayConfigAdd"><i class="fa fa-plus fa-fw"></i>新增</a>
										</div>
										<div class="row">
											<table id="sysPayConfigTable" class="table"></table>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
					<!-- 支付方式结束 -->
				</div>
			</div>
		</div>
	</div>
	<input id="opt_status" value="0" type="hidden" />
	<script type="text/javascript" src="${rootPath}/statics/plugins/jqwidgets-ver3.9.1/jqwidgets/jqxcore.js"></script>
	<script type="text/javascript" src="${rootPath}/statics/plugins/jqwidgets-ver3.9.1/jqwidgets/jqxbuttons.js"></script>
	<script type="text/javascript" src="${rootPath}/statics/plugins/jqwidgets-ver3.9.1/jqwidgets/jqxscrollbar.js"></script>
	<script type="text/javascript" src="${rootPath}/statics/plugins/jqwidgets-ver3.9.1/jqwidgets/jqxdatatable.js"></script>
	<script type="text/javascript" src="${rootPath}/statics/plugins/jqwidgets-ver3.9.1/jqwidgets/jqxtreegrid.js"></script>
	<script type="text/javascript" src="${rootPath}/statics/plugins/jqwidgets-ver3.9.1/jqwidgets/jqxdata.js"></script>
	<script type="text/javascript" src="${rootPath}/statics/plugins/upload/ajaxfileupload.js"></script>
	<script type="text/javascript" src="${rootPath}/js/company/companyInfo_form.js"></script>
</body>
</html>